package design.patterns.dispatch.simple;

import java.awt.*;

/**
 * desc     :
 * dateTime : 2020-06-14 10:23
 *
 * @author wwchen
 */
public class ColorPoint extends Point {
    private Color c;

    @Override
    void draw(Canvas c){
        System.out.println(c);
        System.out.println(this);
    }

    void translate(int d){
        x += d;
        y += d;
        System.out.println(this);
    }
}
